<?php
$routerGroup = new \Phalcon\Mvc\Router\Group(['module' => 'home']);

//$routerGroup -> add('/', ['controller' => 'Index', 'action' => 'index']) -> setName('homeIndex::index');

$routerGroup -> addGet('/finance', ['controller' => 'Finance', 'action' => 'index']) -> setName('homeFinance::index');

$routerGroup -> addGet('/goods/log', ['controller' => 'GoodsLog', 'action' => 'index']) -> setName('homeGoodsLog::index');

$routerGroup -> addGet('/login', ['controller' => 'Login', 'action' => 'index']) -> setName('homeLogin::index');
$routerGroup -> addGet('/enter', ['controller' => 'Login', 'action' => 'enter']) -> setName('homeLogin::enter');
$routerGroup -> addPost('/login', ['controller' => 'Login', 'action' => 'login']) -> setName('homeLogin::login');
$routerGroup -> addGet('/logout', ['controller' => 'Login', 'action' => 'logout']) -> setName('homeLogin::logout');

$routerGroup -> addGet('/notice', ['controller' => 'Notice', 'action' => 'index']) -> setName('homeNotice::index');
$routerGroup -> addGet('/notice/detail', ['controller' => 'Notice', 'action' => 'detail']) -> setName('homeNotice::detail');

$routerGroup -> addGet('/promotion', ['controller' => 'Promotion', 'action' => 'index']) -> setName('homePromotion::index');

$routerGroup -> addGet('/service', ['controller' => 'Service', 'action' => 'index']) -> setName('homeService::index');

$routerGroup -> addGet('/service/center', ['controller' => 'ServiceCenter', 'action' => 'index']) -> setName('homeServiceCenter::index');
$routerGroup -> addPost('/service/center', ['controller' => 'ServiceCenter', 'action' => 'create']) -> setName('homeServiceCenter::create');
$routerGroup -> addPost('/service/center/status/:int', ['controller' => 'ServiceCenter', 'action' => 'status', 'status' => 1]) -> setName('homeServiceCenter::status');
$routerGroup -> addPost('/service/center/shopLevel', ['controller' => 'ServiceCenter', 'action' => 'shopLevel']) -> setName('homeServiceCenter::shopLevel');
$routerGroup -> addPost('/service/center/delete', ['controller' => 'ServiceCenter', 'action' => 'delete']) -> setName('homeServiceCenter::delete');

$routerGroup -> addGet('/user/useUserCodeGetUserNameAndNode', ['controller' => 'User', 'action' => 'useUserCodeGetUserNameAndNode']) -> setName('homeUser::useUserCodeGetUserNameAndNode');
$routerGroup -> addGet('/user/useUserCodeGetUserName', ['controller' => 'User', 'action' => 'useUserCodeGetUserName']) -> setName('homeUser::useUserCodeGetUserName');

$routerGroup -> addGet('/user/profile', ['controller' => 'UserProfile', 'action' => 'index']) -> setName('homeUserProfile::index');
$routerGroup -> addPost('/user/profile', ['controller' => 'UserProfile', 'action' => 'update']) -> setName('homeUserProfile::update');
$routerGroup -> addPost('/user/profile/info', ['controller' => 'UserProfile', 'action' => 'updateInfo']) -> setName('homeUserProfile::updateInfo');

$routerGroup -> addGet('/user/register', ['controller' => 'UserRegister', 'action' => 'index']) -> setName('homeUserRegister::index');
$routerGroup -> addPost('/user/register/create', ['controller' => 'UserRegister', 'action' => 'create']) -> setName('homeUserRegister::create');

$routerGroup -> addPost('/user/wallet/goods/repeated', ['controller' => 'UserWalletGoods', 'action' => 'repeated']) -> setName('homeUserWalletGoods::repeated');
$routerGroup -> addPost('/user/wallet/goods/transfer', ['controller' => 'UserWalletGoods', 'action' => 'transfer']) -> setName('homeUserWalletGoods::transfer');
$routerGroup -> addPost('/user/wallet/goods/sell', ['controller' => 'UserWalletGoods', 'action' => 'sell']) -> setName('homeUserWalletGoods::sell');

$routerGroup -> addPost('/user/wallet/declaration_coin/transfer', ['controller' => 'UserWalletDeclarationCoin', 'action' => 'transfer']) -> setName('homeUserWalletDeclarationCoin::transfer');

$routerGroup -> addGet('/user/wallet/activation_code_log', ['controller' => 'UserWalletActivationCodeLog', 'action' => 'index']) -> setName('homeUserWalletActivationCodeLog::index');

$routerGroup -> addGet('/user/wallet/coupon_log', ['controller' => 'UserWalletCouponLog', 'action' => 'index']) -> setName('homeUserWalletCouponLog::index');

$routerGroup -> addGet('/user/wallet/tourism_integration_log', ['controller' => 'UserWalletTourismIntegrationLog', 'action' => 'index']) -> setName('homeUserWalletTourismIntegrationLog::index');

$routerGroup -> addGet('/user/photo/first', ['controller' => 'UserPhoto', 'action' => 'first']) -> setName('homeUserPhoto::first');
$routerGroup -> addGet('/user/photo/second', ['controller' => 'UserPhoto', 'action' => 'second']) -> setName('homeUserPhoto::second');
$routerGroup -> addGet('/user/photo/third', ['controller' => 'UserPhoto', 'action' => 'third']) -> setName('homeUserPhoto::third');
$routerGroup -> addGet('/user/photo/fourth', ['controller' => 'UserPhoto', 'action' => 'fourth']) -> setName('homeUserPhoto::fourth');

return $routerGroup;
?>